home *** CD-ROM | disk | FTP | other *** search
- Enclosure: mymenus
-
- Here's a neat script for those of you that add a lot of menus to Frontier
- and clutter up your menubar.
-
- The enclosed object export will install itself into a table called:
- "system.mymenus". This table contains the script called "installremovemymenu"
- and a sample menu,
-
- "installremovemymenu" takes an address of a menubar variable and checks to
- see if it is currently installed. If it is, it removes it. If it isn't, it
- installs it. I use this to install my special menus when I need them, and
- remove them when they get in the way.
-
- After you have imported the script, go to the menubar editor. Add a menu
- item called "My Menus" to the "Custom". This will be a hierarchical menu you
- will use to load and unload the menus. Now add an item called "Sample" to the
- "My Menus" item, thus making it hierarchical. Now click on the "Script" button
- and type in the following into the script window:
-
- system.mymenus.installremovemymenu(@system.mymenus.SampleMenu)
-
- Close the window, close the menubar editor, and go to the Custom menu.
- You'll notice the "My Menus" item. Select it and it should pop up with the
- "Sample" item. Select the "Sample" item and you'll see the Sample menu appear
- in the menubar. Select it again, and the menu disappears.
-
- You'll want to make your own menus, so just add them to the
- "system.mymenus" table and add the appropriate item using the menubar editor.
-
- Requires Frontier 1.0b3 or greater. If there are any problems, or you have
- suggestions, please feel free to link me.
-
- Mark
- Author: D1180
-